#!/bin/sh

OUTPUT=output
PREFIX_DIR=/tmp/demo/usr

mkdir -p ${OUTPUT} && cd ${OUTPUT}

# 指定头文件搜索路径
export CMAKE_INCLUDE_PATH=${PREFIX_DIR}/include/demo

# 指定库文件搜索路径
export CMAKE_LIBRARY_PATH=${PREFIX_DIR}/lib

# 编译
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX_DIR} .. && make
